home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- rem This is the first (batch) version on which Wild.EXE's idea was based.
- rem Included in WILD400.ARJ as a batch programming example!
-
- if %1.==. goto HELP
- if %1.==?. goto HELP
- if %3.==. for %%p in (%1) do %2 %%p %4 %5 %6 %7 %8 %9
- if %3.==. goto END
- if %3.==wild. for %%p in (%1) do %2 %%p %4 %5 %6 %7 %8 %9
- if %3.==wild. goto END
- if %4.==wild. for %%p in (%1) do %2 %3 %%p %5 %6 %7 %8 %9
- if %4.==wild. goto END
- if %5.==wild. for %%p in (%1) do %2 %3 %4 %%p %6 %7 %8 %9
- if %5.==wild. goto END
- if %6.==wild. for %%p in (%1) do %2 %3 %4 %5 %%p %7 %8 %9
- if %6.==wild. goto END
- if %7.==wild. for %%p in (%1) do %2 %3 %4 %5 %6 %%p %8 %9
- if %7.==wild. goto END
- if %8.==wild. for %%p in (%1) do %2 %3 %4 %5 %6 %7 %%p %9
- if %8.==wild. goto END
- if %9.==wild. for %%p in (%1) do %2 %3 %4 %5 %6 %8 %%p %9
- if %9.==wild. goto END
- echo %0: Syntax error
-
- :HELP
- echo.
- echo %0.BAT - (c) Haris Courouclis 1990
- echo.
- echo %0 is intended for use with programs that do not accept wildcards,
- echo such as DOS's TYPE.
- echo.
- echo It is the first (batch) version on which Cadmos Wild.EXE was based.
- echo.
- echo USAGE: %0 command file-mask [parameters including WILD ...]
- echo EXAMPLE: %0 type *.txt wild
- echo EXAMPLE: %0 find *.txt "Test" wild
- echo.
-
- :END
-